package com.puge.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author by sun
 * @date 2021/6/1.22:33
 */
//创建启动类
@EnableFeignClients
@SpringBootApplication
@EnableDiscoveryClient    //nacos注册
@ComponentScan(basePackages = {"com.puge"})//该标签用来设定主启动类启动的时候，从哪个包开始扫描，这里设置是将扫描的路径修改为从puge的包下开始扫描，这样swaggerConfig配置文件才会被扫描到
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);
    }

}
